package com.ram.service;

import com.ram.pojo.Accommodation;
import com.ram.pojo.AccommodationDTO;
import com.ram.pojo.AccommodationVO;
import com.ram.pojo.PageResult;
import java.util.List;

public interface AccommodationService {
    List<Accommodation> list();
    Accommodation getById(Integer id);
    void add(Accommodation accommodation);
    void update(Accommodation accommodation);
    void deleteById(Integer id);

    // 分页+条件查询
    PageResult<AccommodationVO> pageQuery(AccommodationDTO dto);

    // 业务流程
    void checkin(Accommodation accommodation); // 入住登记
    void checkout(Integer accommodationId);    // 退宿
    void changeBed(Integer accommodationId, Integer newBedId, String remark); // 调宿
} 